<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Hastalık Sihirbazı</title>
        <link href="Tema.css" rel="stylesheet" type="text/css"></link>
    </h:head>
    <h:body>
        <h:form prependId="false">
            <div id="wrapper">
                <div id="logo">
                </div>
                <div id="header">
                </div>
                <div class="page">
                    <div id="page-bgtop">
                        <div id="dummy"></div>
                        <p:panel id="panelsidebar" header="Erişim Noktaları">
                            <ui:include src="SaglikKuruluMenu.xhtml"/>
                        </p:panel>
                        <div id="content">
                            <p:panel id="panel" header="Hastalık Sihirbazı">
                                <p:panel header="Hastalık Belirtileri ve Sorular">  
                                    <p:dataTable id="soruBelirtiTablosu" var="soru" value="#{SaglikKuruluDenetci.soruModeli}" editable="true">  
                                        <f:facet name="header">  
                                            Hastalığa ait belirtiyi tespit etmek için soru ekleyin. Soru eklemek için önce belirtiyi seçin. 
                                        </f:facet>
                                        <p:column headerText="Soru">
                                            <p:cellEditor>  
                                                <f:facet name="output">  
                                                    <h:outputText value="#{soru.tanim}" />  
                                                </f:facet>  
                                                <f:facet name="input">  
                                                    <p:inputText value="#{soru.tanim}" style="width:100%" required="true"/>  
                                                </f:facet>  
                                            </p:cellEditor>   
                                        </p:column> 
                                        <p:column headerText="Seçenekler">
                                            <p:cellEditor>  
                                                <f:facet name="output">  
                                                    <h:outputText value="#{soru.secenekTipi}" />  
                                                </f:facet>  
                                                <f:facet name="input">
                                                    <h:selectOneMenu value="#{soru.secenekTipi}" required="true">  
                                                        <f:selectItems value="#{SaglikKuruluDenetci.secenekler}" var="secenek" itemLabel="#{secenek}" itemValue="#{secenek}" />  
                                                    </h:selectOneMenu> 
                                                </f:facet>  
                                            </p:cellEditor>   
                                        </p:column> 
                                        <p:column headerText="Belirti">  
                                            #{soru.belirti.tanim}  
                                        </p:column>
                                        <p:column headerText="İşlem" style="width:50px">  
                                            <p:rowEditor />  
                                        </p:column>
                                    </p:dataTable>
                                    <h:panelGrid>
                                        <p:messages/>
                                    </h:panelGrid> 
                                </p:panel>
                                <p:commandButton value="Devam" actionListener="#{SaglikKuruluDenetci.yeniHastaligaTeshisEkle}"/>
                            </p:panel> 
                        </div>
                        <div style="clear: both;">&nbsp;</div>
                    </div>
                </div>
                <div id="footer-bgcontent">
                    <div id="footer" align="center">
                        <p>E-Doktor</p>
                    </div>
                </div>
            </div>
        </h:form>
    </h:body>
</html>

